package com.oa.system.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.system.entity.Permission;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.oa.system.vo.PermissionVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author syb123
 * @since 2019-01-29
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 查询所有列表
     *
     * @return
     */
    List<Permission> findList();

    /**
     * 根据岗位id查询该岗位拥有的权限
     *
     * @param id
     * @return
     */
    List<PermissionVO> findPermissionByPostId(@Param("id")String id);

}
